package apiooday01;

public class SubstringDemo {
    public static void main(String[] args) {

        //截取一段字符串
        String str = "www.tedssu.com";

        String name = str.substring(str.indexOf(".")+1,str.lastIndexOf("."));
        System.out.println(name);


    }


}
